class AddIndexToCoupons < ActiveRecord::Migration[5.0]
  def change
    add_index :coupons, :name
    add_index :coupons, :code
    add_index :coupons, :price
    add_index :coupons, :begin_date
    add_index :coupons, :end_date
    add_index :coupons, :region
    add_index :coupons, :state
    add_index :coupons, :kind
  end
end
